package com.norma.macaron.service.common.exception;


import com.norma.macaron.common.model.enums.ResultCode;

/***
 * @Author zhangchaofeng
 * @Description 自定义异常类型
 * @Date 16:58 2020/6/4 0004
 **/
public class CustomException extends RuntimeException {

    /**错误代码*/
    ResultCode resultCode;

    public CustomException(ResultCode resultCode){
        this.resultCode = resultCode;
    }
    public ResultCode getResultCode(){
        return resultCode;
    }


}
